CopyFile

Copies a file to a new location.

Syntax

CopyFile("SourcePath", "DestinationPath", Overwrite)

Arguments

Argument Description
SourcePath Full path to the file to copy. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.
DestinationPath Full path to the directory to copy the file to. If the destination path includes a different filename than the source, the file is copied and renamed in the new location. If the filename is not included, the source filename is used. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.
Overwrite Overwrite behavior. True overwrites existing files in the destination directory. False does not overwrite files. If is not specified, False is used.

Example

CopyFile("C:\\Testing\\Output.txt", "C:\\TestDocuments\\DataSource\\", False)